/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Recordings_ } from '../models/Recordings_';
import type { Result } from '../models/Result';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class RecordingsControllerService {

    /**
     * add
     * @param recordings recordings
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static addUsingPost3(
recordings: Recordings_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recordings/add',
            body: recordings,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * remove
     * @param recordingId recording_id
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static removeUsingPost3(
recordingId: number,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recordings/add/{recording_id}',
            path: {
                'recording_id': recordingId,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * list
     * @param current current
     * @param size size
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static listUsingPost3(
current: number,
size: number,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recordings/list/{current}/{size}',
            path: {
                'current': current,
                'size': size,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
